<template>
  <div>
    <li>
      <a :href="'/cate/?id='+data.id">{{data.name}}</a>
      <ul v-if="data.children && data.children.length > 0">
        <antwork v-for="child in data.children" :key="child.id" :data='child' />
      </ul>
    </li>
  </div>
</template>

<script>
export default {
  name:"antwork",
  props:['data'],
}
</script>

<style>
ul{
  padding-left: 20px;
  list-style: none;
}
</style>